package com.copm.ifm.base.service.auth;


import com.copm.ifm.base.basic.enums.MenuEnum;
import com.copm.ifm.base.basic.enums.OptionEnum;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 接口权限鉴权注解
 *
 * @author zzf
 * @date 2020/12/17
 */
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface RequiresPermissions {

    /**
     * 菜单
     */
    MenuEnum menu();

    /**
     * 操作
     */
    OptionEnum option();

}
